package cn.wzx.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document("t_blogtype")
public class BlogType {
    @Id
    private String id;
    private String type;//博客类别
    private Integer num;  //博客类别数量

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "BlogType{" +
                "id='" + id + '\'' +
                ", type='" + type + '\'' +
                ", num=" + num +
                '}';
    }
}
